<div class="col-md-4 right">
    <div class="page-header">
        <h2>热门排行</h2>
    </div>
<!--    下面volist 的循环变量是i  不用定义-->
    <div class="list-group">
        {volist name="$hotArtList" id="art"}
        <a href="{:url('index/detail',['id'=>$art.id])}" class="list-group-item
            {eq name="$i" value="1"}
            active
        {/eq}
        ">{:mb_substr($art.title,0,13)}<span class="badge">{$art.pv}</span> </a>
        {/volist}
    </div>
</div>